
public class AdjazenzItem 
{
	private String wordName;
	private AdjazenzItem parent;
	private int value;
	
	public String getWordName() {
		return wordName;
	}
	private void setWordName(String wordName) {
		this.wordName = wordName;
	}
	public AdjazenzItem getParent() {
		return parent;
	}
	private void setParent(AdjazenzItem parent) {
		this.parent = parent;
	}
	public int getValue() {
		return value;
	}
	
	public void increaseValue()
	{
		this.value = this.value + 1;
	}
	
	public AdjazenzItem(String wordName, AdjazenzItem parentItem)
	{
		this.setWordName(wordName);
		this.setParent(parentItem);
	}
	
	public boolean hasParentItem()
	{
		return this.getParent() != null;
	}
	
	

}
